<?php
$list_alerts_warranty = $company->alert_warranty();
?>

<div class="header radius3">
    <div class="headerinner">
        <?php if ($company->image=="" || $company->image==null) {?>
        <? echo '<a href="'.$url.'"><img src="../images/starlight_admin_template_logo_small.png" width="184px" height="34px" /></a>'; ?>
        <?php }else{?>
        <? echo '<a href="'.$url.'"><img src="data:'.$company->type.';base64,' . base64_encode( $company->image ) . '" width="184px" height="34px" /></a>'; ?>
        <?php }?>


        <div class="headright">
            <div class="headercolumn"></div>


            <div id="notiPanel" class="headercolumn">
                <div class="notiwrapper">
                    <a href="../pages/alerts.php" class="notialert radius2"><?php echo count($list_alerts_warranty); ?></a>
                    <div class="notibox">
                        <ul class="tabmenu">
                            <li class="current" style="width: 100%"><a href="../pages/alerts.php" class="act">Alertas</a></li>
                        </ul>
                        <br clear="all" />
                        <div class="loader"><img src="../images/loaders/loader3.gif" alt="Loading Icon" />Carregando</div>
                        <div class="noticontent"></div><!--noticontent-->
                    </div><!--notibox-->
                </div><!--notiwrapper-->
            </div><!--headercolumn-->

            <div id="userPanel" class="headercolumn">
                <a href="" class="userinfo radius2">
                    <img src="../images/avatar.png" alt="" class="radius2"/>
                    <span><strong><?php echo $userweb->name ?></strong></span>
                    <span><strong>|</strong></span>
                    <span><?php echo $company->name ?></span>
                </a>

                <div class="userdrop">
                    <ul>
                        <?php if ($_SERVER['SCRIPT_NAME'] != "/pages/map.php" || $_SERVER['SCRIPT_NAME'] != "/pages/maproute.php") { ?>
                            <!--<li><a href="/pages/usuarios.php">Usuários</a></li>-->
                            <li><a href="/pages/config_empresa.php">Configurações</a></li>
                            <!--<li><a href="/pages/parque.php">Parque</a></li>-->
                            <li><a href="/pages/categorias.php">Categorias</a></li>
                        <?php } ?>
                        <li><a href="/pages/logout.php">Sair</a></li>
                    </ul>
                </div>
                <!--userdrop-->
            </div>
            <!--headercolumn-->
        </div>
        <!--headright-->
    </div>
    <!--headerinner-->
</div><!--header-->